// ignore_for_file: non_constant_identifier_names

import 'package:dmz/business/home/model/moto_config.dart';
import 'package:json_annotation/json_annotation.dart';

part 'moto_modelg.dart';

@JsonSerializable()
class MotoModel {
  String? sn_code;
  String? name;
  String? color;
  String? frame_code;
  String? mac;
  String? imei;
  String? iccid;
  String? imsi;
  int? created_at;
  String? engine_code;
  String? photo;
  String? image;
  String? type_name;
  String? firmware_version;
  String? store_name;
  int? device_type_id;
  String? device_type_name;
  String? firmware_id;
  int? status;
  int? is_bind;
  int? is_manager;
  int? id;
  int? ebike_id;
  int? socket_type;
  int? power_status;
  int? lock_status;
  int? online_status;
  int? warranty_period_time;
  int? key_sharing;
  int? activation_time;
  int? buy_time;
  int? battery_type;
  String? battery_capacity;
  bool? is_show_couch;
  bool isOpen = false;
  bool sateOpen = false;
  bool funded = false;
  bool contentBlue = false;
  bool haveGPS = false;
  bool have4G = false;
  int power = 0;
  int shareTotal = 0;
  List<Map>? additional_props;
  MotoConfig? config;
  List<int>? configResult = [];
  List<String>? configStr = [];
  MotoModel();

  factory MotoModel.fromJson(Map<String, dynamic> json) =>
      _$MotoModelFromJson(json);
  Map<String, dynamic> toJson() => _$MotoModelToJson(this);
}
